{% assign publications = data.publications %}
{% if publications and publications.display %}
<section class="publications">
    <div class="section-title">
        {{ publications.title }}
    </div>

    <div class="section-content">
        {% if publications.intro %}
        <div class="intro">
            <div class="markdown">
                {{ publications.intro | markdownify }}
            </div>
        </div>
        {% endif %}

        {% for publication in publications.items %}
        <div class="item">
            {% if publication.title %}
            <p class="title">
                {% if publication.link %}
                <a href="{{ publication.link }}" target="_blank">{{ publication.title }}</a>
                {% else %}
                {{ publication.title }}
                {% endif %}
            </p>

            {% if publication.authors %}
            <div class="authors">{{ publication.authors }}</div>
            {% endif %}

            {% if publication.conference %}
            <div class="conference">{{ publication.conference }}</div>
            {% endif %}
            {% endif %}
        </div>
        {% endfor %}
    </div>
</section>
{% endif %}
